<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>柒章私人影吧</title>
    <link rel="stylesheet" href="assets/css/main.css"/>
</head>
<body class="cat" data-page="list">

    <div class="header">
        <span class="time" id="j_time">2016年4月9日 星期六   13:48</span>
        <div class="search">
            <input type="text" placeholder="搜索影片">
            <button type="submit"></button>
        </div>
        <div class="user" id="j_user"></div>
    </div>

    <div class="aside" id="j_aside"></div>

    <div class="section" id="j_list"></div>
    <script type="text/template" id="tpl_user">
        <% if(this.name) { %>
        <div class="info">
            <a class="avatar"></a>
            <div class="more" id="j_user">
                <a class="avatar"></a>
                <span>{{this.name}}</span>
                <span>用户等级:{{this.level}}</span>
                <a class="signout">退出</a>
            </div>
        </div>
        <% }else{ %>
        <a href="sign.html" class="signin">登录</a>
        <% } %>
    </script>

    <script type="text/template" id="tpl_list">

        <ul class="list clear">
            <each this.list>
                <li><a href="detail.html?id={{id}}"><img src="{{thumb}}" alt="{{name}}"><span>{{name}}</span></a></li>
            </each>
        </ul>
        <div class="nav">
            <% if(this.cur > 1 && this.count>1) { %>
            <a href="#order={{this.query}}&page=<% = this.cur-1 %>" class="nav-left"></a>
            <% } %>
            <span class="page">{{this.cur}} / {{this.count}}</span>
            <% if(this.cur < this.count && this.count>1) { %>
            <a href="#order={{this.query}}&page=<% = this.cur+1 %>" class="nav-right"></a>
            <% } %>
        </div>
    </script>
    <script type="text/template" id="tpl_aside">
        <a href="index.html" class="home">返回</a>
        <h2><span>全部类型</span></h2>
        <ul data-type>
            <each this.list>
                <li data-id="{{Movie_MainSortID}}"><a href="#a=cat&sortid={{Movie_MainSortID}}">{{Movie_MainSortName}}</a></li>
            </each>
        </ul>

        <h2><span>上映年代</span></h2>
        <ul>
            <%
            var d = new Date().getFullYear();
            for(var i = d ; i>=2010 ;i--){
            %>
            <li><a href="#a=cat&field=MovieTime&key=<% =i %>"><% =i %></a></li>
            <%  } %>

            <li><a href="#a=cat&field=MovieTime&key=20">2010前</a></li>
            <li><a href="#a=cat&field=MovieTime&key=199">90年代</a></li>
            <li><a href="#a=cat&field=MovieTime&key=198">80年代</a></li>
        </ul>
    </script>

    <script src="api.asp?a=config_base&type=js"></script>
    <script src="api.asp?a=list&type=js"></script>
    <script src="assets/js/jquery.js"></script>
    <script src="assets/js/encodeToGb2312.min.js"></script>
    <script src="assets/js/H.js"></script>
    <script src="assets/js/app.js"></script>
</body>
</html>